// IGNORE_BACKEND: WASM_JS, WASM_WASI
// WASM_MUTE_REASON: IGNORED_IN_JS
// LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
// IGNORE_IR_DESERIALIZATION_TEST: NATIVE
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
// IGNORE_IR_DESERIALIZATION_TEST: JS_IR
// ^^^ IR serialization/deserialization is not tested with K1.
// MODULE: lib
// FILE: common.kt

expect class C {
    val value: String

    fun test(result: String = value): String
}

// FILE: platform.kt
actual class C(actual val value: String) {
    actual fun test(result: String): String = result
}

// MODULE: main(lib)
// FILE: main.kt
fun box() = C("Fail").test("OK")
